home *** CD-ROM | disk | FTP | other *** search
- NAME
- PointerMove.AVf
-
-
- DESCRIPTION
- PointerMove is a flow written to show how AmigaVision Professional
- can move the application pointer and cause a mouse click.
-
- PointerMove creates three objects on the screen. It calculates the
- center of the first object and moves the pointer to that spot. The
- left mouse button then is clicked on that object. The same process
- is used for the second and third objects. This continues until the
- ESC key is pressed to quit the application.
-
- The cursor is moved using the following statements:
- ObjSet ("AVSystem.Pointer", "LeftEdge", "MouseX")
- ObjSet ("AVSystem.Pointer", "TopEdge", "MouseY")
-
- The ObjSet() function assigns the LeftEdge attribute of the system
- object AVSystem.Pointer the value in MouseX. The TopEdge attribute
- of the same object is assigned the value MouseY.
-
- The simulate a left mouse button click, the ObjSet() function is used
- again to assign the Action attribute of the AVSystem.Pointer object
- the value of ClickLeft. If ClickRight had been used, a right mouse
- button click would be executed.
-
- When the ESC key is pressed, the Keyboard Interrupt is activated and
- the flow ends.
-
-